package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(30);not null"`
	Password string `gorm:"type:varchar(32);not null"`
}
type UserRole struct {
	gorm.Model
	Uid int `gorm:"type:int;not null"`
	Rid int `gorm:"type:int;not null"`
}
type Role struct {
	gorm.Model
	RoleName string `gorm:"type:varchar(50);not null"`
}
type RoleNode struct {
	gorm.Model
	Rid int `gorm:"type:int;not null"`
	Nid int `gorm:"type:int;not null"`
}
type Node struct {
	gorm.Model
	NodeName string `gorm:"type:varchar(50);not null"`
}
